package com.leo.base.utils;

import java.awt.*;

/**
 * @ClassName MatrixToLogoImageConfig
 * @Description logo 配置类
 * @Author wangss
 * @date 2020.11.18 18:41
 * @Version 1.0
 */
public class MatrixToLogoImageConfig {

    /**
     * logo默认边框颜色
     */
    public static final Color DEFAULT_BORDERCOLOR = Color.RED;
    /**
     * logo默认边框宽度
     */
    public static final int DEFAULT_BORDER = 1;
    /**
     * logo大小默认为照片的1/5
     */
    public static final int DEFAULT_LOGOPART = 5;

    private final int border = DEFAULT_BORDER;
    private final Color borderColor;
    private final int logoPart;

    public MatrixToLogoImageConfig() {
        this(DEFAULT_BORDERCOLOR, DEFAULT_LOGOPART);
    }


    public MatrixToLogoImageConfig(Color borderColor, int logoPart) {
        this.borderColor = borderColor;
        this.logoPart = logoPart;
    }


    public Color getBorderColor() {
        return borderColor;
    }


    public int getBorder() {
        return border;
    }


    public int getLogoPart() {
        return logoPart;
    }
}
